<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="cache-control" content="max-age=0" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
    <meta http-equiv="pragma" content="no-cache" />
    <script>
        var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
            CSS.supports('top: constant(a)'))
        document.write(
            '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
            (coverSupport ? ', viewport-fit=cover' : '') + '" />')
        const zlDefWx = {
            config: function () {
            },
            ready: function () {
            },
            error: function () {
            },
            getFileSystemManager: function () {
            },
            canIUse: function () {
                return false
            },
            setStorageSync: function () {
            },
            getStorageSync: function () {
            },
            getSystemInfoSync: function () {
                return {
                    SDKVersion: '3.0.0'
                }
            }
        }
        if (typeof wx === 'undefined') {
            // 定义一个假的wx全局变量，防止报错
            window.wx = zlDefWx
        } else {
            // 合并下把wx和并到zlDefWx
            window.wx = Object.assign(zlDefWx, wx)
        }
    </script>
    <title></title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>

</html>